import datetime, os
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:88888888@127.0.0.1:3306/june_bbs'
SQLALCHEMY_TRACK_MODIFICATIONS = True
SECRET_KEY = '99896987'
PERMANENT_SESSION_LIFETIME = datetime.timedelta(days=15)
CMS_USER_ID = 'jkhsdkf'
FRONT_USER_ID = 'sfsdfs'

MAIL_SERVER = 'smtp.qq.com',
MAIL_PORT = 465,
MAIL_USE_TLS = False,
MAIL_USE_SSL = True,
MAIL_USERNAME = "610695891@qq.com",
MAIL_PASSWORD = "upqoajifsrncbdaj",
# MAIL_DEBUG = True
MAIL_DEFAULT_SENDER = '610695891@qq.com'
UEDITOR_UPLOAD_PATH = os.path.join(os.path.dirname(__file__), 'media')
UEDITOR_UPLOAD_TO_QINIU = True
UEDITOR_QINIU_ACCESS_KEY = "a0CO3efhLnvU7ZyiqlhYILA4g2mYDGFj9IMYFWPD"
UEDITOR_QINIU_SECRET_KEY = "mKaamNuxF4zSr87FRg-uzB1KBEyzGXwW8Rbel4is"
UEDITOR_QINIU_BUCKET_NAME = "junemedia"
UEDITOR_QINIU_DOMAIN = "http://media.junpy.club/"


# 每页显示的帖子数量
PER_PAGE = 5